package leaf.science.ui.camera
{

import flash.display.FrameLabel;
import flash.display.MovieClip;
import flash.events.MouseEvent;


public class DemoHotspot extends MovieClip
{

	public var skin:MovieClip;
	public var id:uint;
	public var frame:Number = 1;
	public var toolTip:DemoToolTip;

	public function DemoHotspot()
	{
		stop();
		this.buttonMode = true;
		this.mouseChildren = false;
		
		this.addEventListener( MouseEvent.MOUSE_OVER, disableHidden );
		this.addEventListener( MouseEvent.MOUSE_OUT, disableHidden );
	}
	
	private function disableHidden( evt:MouseEvent ):void
	{
		if( alpha == 0 )
		{
			evt.stopImmediatePropagation();
		}
	}
	
	override public function toString():String
	{
		return( this.name );
	}
	
}
}